package com.wpre.lotterysystem.service;


import com.wpre.lotterysystem.controller.param.CreateActivityParam;
import com.wpre.lotterysystem.controller.param.PageParam;
import com.wpre.lotterysystem.service.dto.ActivityDTO;
import com.wpre.lotterysystem.service.dto.ActivityDetailDTO;
import com.wpre.lotterysystem.service.dto.CreateActivityDTO;
import com.wpre.lotterysystem.service.dto.PageListDTO;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LianBao
 * Date: 2024-12-21
 * Time: 16:24
 */
public interface ActivityService {
    //创建活动
    CreateActivityDTO createActivity(CreateActivityParam param);
    //翻页查询活动列表
    PageListDTO<ActivityDTO> findActivityList(PageParam param);

    //获取活动详细信息
    ActivityDetailDTO getActivityDetail(Long activityId);

    //缓存活动详细信息(先读取表数据再缓存)
    void cacheUpdateActivity(Long activityId);
}
